import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const actorApi = {
    /**
     * 查询演员列表
     * @returns 
     */
   list:(params)=>{
    return myAxios.get(BaseUrl +'movie-actors',params)
   },
   //添加演员
   add:(params) => {
    return myAxios.post(BaseUrl +'movie-actor/add',params)
   },
   //搜索框查询
   Search:(params) => {
    return myAxios.post(BaseUrl + 'movie-actors/name',params)
   },
   //删除演员
   delete:(params) => {
    return myAxios.post(BaseUrl + 'movie-actor/del',params)
   },
   //通过电影id查找演员
   listBymovieId:(params) => {
    return myAxios.get(BaseUrl + 'movie-actors/movieid',params)
   }
}
export default actorApi;